Skip to contentSkip to conversation

Change in openvpn[master]: Make read/write_tun_header static

Openvpn-devel In review plaisthos (Code Review) 2 participants 6 messages Sep 16, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1726491830000.I028634dba74a273c725b0beb16b674897b3c23fa@...2715...

#1 lore raw

Attention is currently required from: flichtenheld.

Hello flichtenheld,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/745?usp=email

to review the following change.

Change subject: Make read/write_tun_header static
......................................................................

Make read/write_tun_header static

These functions are not used outside tun.c

Change-Id I028634dba74a273c725b0beb16b674897b3c23fa

---
M src/openvpn/tun.c

1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/45/745/1

src/openvpn/tun.c +2 -2
index 1f0eadd..0832375 100644
@@ -1822,7 +1822,7 @@
     }
 }
 
-int
+static int
 write_tun_header(struct tuntap *tt, uint8_t *buf, int len)
 {
     if (tt->type == DEV_TYPE_TUN)
@@ -1855,7 +1855,7 @@
     }
 }
 
-int
+static int
 read_tun_header(struct tuntap *tt, uint8_t *buf, int len)
 {
     if (tt->type == DEV_TYPE_TUN)
Signature · 13 lines
To view, visit http://gerrit.openvpn.net/c/openvpn/+/745?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I028634dba74a273c725b0beb16b674897b3c23fa
Gerrit-Change-Number: 745
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange
#2 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos.

cron2 has posted comments on this change. ( http://gerrit.openvpn.net/c/openvpn/+/745?usp=email )

Change subject: Make read/write_tun_header static
......................................................................

Patch Set 1: Code-Review+2

(1 comment)

Patchset:

PS1:
straightforward, makes sense

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/745?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I028634dba74a273c725b0beb16b674897b3c23fa
Gerrit-Change-Number: 745
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Mon, 16 Sep 2024 13:32:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#3 lore raw

PATCH 1/1 Make read/write_tun_header static

In reply to a message not in the archive

From: Arne Schwabe <[email protected]...>

These functions are not used outside tun.c

Change-Id I028634dba74a273c725b0beb16b674897b3c23fa

---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to master.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/745
This mail reflects revision 1 of this Change.

Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>

src/openvpn/tun.c +2 -2
index 1f0eadd..0832375 100644
@@ -1822,7 +1822,7 @@
     }
 }
 
-int
+static int
 write_tun_header(struct tuntap *tt, uint8_t *buf, int len)
 {
     if (tt->type == DEV_TYPE_TUN)
@@ -1855,7 +1855,7 @@
     }
 }
 
-int
+static int
 read_tun_header(struct tuntap *tt, uint8_t *buf, int len)
 {
     if (tt->type == DEV_TYPE_TUN)
#4 lore raw

[Openvpn-devel] [PATCH applied] Re: Make read/write_tun_header static

Verified that it's not used outside tun.c, test built OpenBSD (which uses this).

Your patch has been applied to the master branch.

commit ac3a7fd93542420f12d58e5c7490076b5741fb5a

Author: Arne Schwabe
Date:   Mon Sep 16 15:34:35 2024 +0200
     Make read/write_tun_header static

     Signed-off-by: Arne Schwabe <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Message-Id: <[email protected]...>
     Signed-off-by: Gert Doering <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg29249.html

--
kind regards,

Gert Doering

#5 lore raw
In reply to a message not in the archive

cron2 has uploaded a new patch set (#3) to the change originally created by plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/745?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by cron2

Change subject: Make read/write_tun_header static
......................................................................

Make read/write_tun_header static

These functions are not used outside tun.c

Change-Id I028634dba74a273c725b0beb16b674897b3c23fa

Message-Id: <[email protected]...>

URL: https://www.mail-archive.com/[email protected]/msg29249.html
---
M src/openvpn/tun.c

1 file changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/45/745/3

src/openvpn/tun.c +2 -2
index 82c5c00..8b6c34d 100644
@@ -1792,7 +1792,7 @@
     }
 }
 
-int
+static int
 write_tun_header(struct tuntap *tt, uint8_t *buf, int len)
 {
     if (tt->type == DEV_TYPE_TUN)
@@ -1825,7 +1825,7 @@
     }
 }
 
-int
+static int
 read_tun_header(struct tuntap *tt, uint8_t *buf, int len)
 {
     if (tt->type == DEV_TYPE_TUN)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/745?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I028634dba74a273c725b0beb16b674897b3c23fa
Gerrit-Change-Number: 745
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset

#6 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/745?usp=email )

Change subject: Make read/write_tun_header static
......................................................................

Make read/write_tun_header static

These functions are not used outside tun.c

Change-Id I028634dba74a273c725b0beb16b674897b3c23fa

Message-Id: <[email protected]...>

URL: https://www.mail-archive.com/[email protected]/msg29249.html
---
M src/openvpn/tun.c

1 file changed, 2 insertions(+), 2 deletions(-)
src/openvpn/tun.c +2 -2
index 82c5c00..8b6c34d 100644
@@ -1792,7 +1792,7 @@
     }
 }
 
-int
+static int
 write_tun_header(struct tuntap *tt, uint8_t *buf, int len)
 {
     if (tt->type == DEV_TYPE_TUN)
@@ -1825,7 +1825,7 @@
     }
 }
 
-int
+static int
 read_tun_header(struct tuntap *tt, uint8_t *buf, int len)
 {
     if (tt->type == DEV_TYPE_TUN)

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/745?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I028634dba74a273c725b0beb16b674897b3c23fa
Gerrit-Change-Number: 745
Gerrit-PatchSet: 3
Gerrit-Owner: plaisthos <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged